package com.example.apricots.Net;

/**
 * Created by itsnice on 2017/9/8.
 *
 */

public class HttpResponseHandlerCallback<T> implements ResponseCallback<T> {

    private ResponseCallback<T> responseCallback;

    public HttpResponseHandlerCallback(ResponseCallback<T> responseCallback) {
        this.responseCallback = responseCallback;
    }

    @Override
    public void success(T t) {
        responseCallback.success(t);
    }

    @Override
    public void faile() {
        responseCallback.faile();
    }

}
